<?php $this->beginContent('//layouts/root'); ?>   
        <div id="fb-root"></div>
        <script>(function(d, s, id) {
          var js, fjs = d.getElementsByTagName(s)[0];
          if (d.getElementById(id)) return;
          js = d.createElement(s); js.id = id;
          js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=<?php echo Yii::app()->params->facebook['appId']?>";
          fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));</script>
        <div id="ajax-loading">
            <img src="/files/img/loader_2.gif" /> Loading ...
        </div>

        <div id="page"><!-- class="boxed" -->
            <?php $this->renderPartial('//common/header')?>
            <?php echo $content?>
            <?php $this->renderPartial('//common/footer')?>
        </div><!-- #page -->
        
        
<!--        <script src="<?php echo $this->themeUrl?>/files/theme/js/jquery-1.9.1.min.js"></script>             -->
        <script src="<?php echo $this->themeUrl?>/files/theme/js/jquery-migrate-1.1.1.min.js"></script>

        <!-- RoyalSlider -->
        <script src="<?php echo $this->themeUrl?>/files/theme/royalslider/jquery.royalslider.js"></script>
        <script src="<?php echo $this->themeUrl?>/files/theme/js/plugins/pretty-photo/js/jquery.prettyPhoto.js"></script>
        <script src="<?php echo $this->themeUrl?>/files/theme/js/plugins.js"></script>
        <script src="<?php echo $this->baseUrl?>/files/js/jquery-scroller/jquery-scroller-v1.min.js"></script>
        <script src="<?php echo $this->themeUrl?>/files/theme/js/main.js"></script>
        <script src="<?php echo $this->themeUrl?>/files/js/script.js"></script>


        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

          ga('create', '<?php echo Yii::app()->params->google['gaId']?>', '<?php echo Yii::app()->params->google['gaDomain']?>');
          ga('send', 'pageview');

        </script> 
<?php $this->endContent(); ?>
    